<?php
include 'Api.php';
header('Content-Type: text/html; charset=UTF-8');
$appid="49834001";
$secret="joofang";

$access_token=getAccessToken($appid, $secret);
$ticket=$_GET['ticket'];

echo getUsername($ticket, $access_token)

?>